{% extends "common/layout_main.html" %}
{% block content %}
    {% include "common/tab_finance.html" %}
    <div class="row m-t wrap_info">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-lg-12">
                    {% if pay_order_info.status == 1 and pay_order_info.express_status == -7 %}
                        <a class="btn btn-outline btn-primary pull-right express_send" href="javascript:void(0);"
                           data="{{ pay_order_info.id }}">确认发货</a>
                    {% endif %}
                    <div class="m-b-md">
                        <h2>订单信息</h2>
                    </div>
                </div>
            </div>
            <div class="row m-t">
                <div class="col-lg-12">
                    <div class="panel blank-panel">
                        <div class="panel-heading">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active">
                                        <a href="#tab-1" data-toggle="tab" aria-expanded="false">订单商品</a>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <div class="panel-body">
                            <div class="tab-content">
                                <div class="tab-pane active" id="tab-1">
                                    <table class="table table-striped">
                                        <thead>
                                        <tr>
                                            <th>商品</th>
                                            <th>数量</th>
                                            <th>金额</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {% for item in pay_order_items %}
                                            <tr>
                                                <td>{{ item.name }}</td>
                                                <td>{{ item.quantity }}</td>
                                                <td>{{ item.price }}</td>
                                            </tr>
                                        {% endfor %}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {% include "finance/flow_chart.html" %}
        </div>
    </div>
{% endblock %}
{% block js %}
    <script src="{{ buildStaticUrl('/js/finance/pay_info.js') }}"></script>
{% endblock %}
